package com.znyj.cloud.device.task.sender;

import com.znyj.cloud.device.task.model.ControlTaskModel;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import org.apache.log4j.Logger;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Created by gaoliwei02 on 17/6/3.
 */
@Component
public class ControlDataSender {
    private static final Logger logger = Logger.getLogger(ControlDataSender.class);

    @Async
    public void send(ControlTaskModel controlTaskModel, ChannelHandlerContext ctx) {
        controlTaskModel.sendPackage(ctx);
    }
}
